package store.gjn998.mp.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import store.gjn998.mp.pojo.LogInfo;
import store.gjn998.mp.service.LogInfoService;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author guozepeng
 * @since 2021-10-24
 */
@RestController
@RequestMapping("/log-info")
public class LogInfoController {
    @Resource(name = "logInfoService")
    LogInfoService logInfoService;

    @GetMapping(value = "/list")
    public List<LogInfo> getLogInfos() {
        return logInfoService.getLogInfos();
    }
}

